﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using Kugar.Core.Data.MSSQLHelper;
using Kugar.Core.BaseStruct;

namespace Kugar.Core.Data.DBCommon
{
    public abstract class DBPoolBase : RecyclablePool<IKugarConnection>
    {
        public DBPoolBase(string connectString, int maxLength, int minLength)
            : base(maxLength, minLength)
        {
            ConnectString = connectString;
            base.Init();
        }

        protected override void Init()
        {
            base.Init();

            //foreach (var l in base.cacheList)
            //{
            //    l.Pool = this;
            //}
        }

        public string ConnectString {protected set; get; }
    }
}
